/* 个人中心样式 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding-bottom: 40px;
}

/* 导航栏 */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.nav-logo img {
    width: 40px;
    height: 40px;
}

.nav-logo h2 {
    font-size: 20px;
    color: #333;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #667eea;
}

.logout-btn {
    padding: 8px 20px;
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s;
}

.logout-btn:hover {
    background: #ff3838;
}

/* 主内容区 */
.main-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.profile-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* 用户信息卡片 */
.user-card {
    padding: 40px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.avatar-section {
    text-align: center;
}

.avatar-section {
    text-align: center;
    margin-bottom: 30px;
}

.avatar {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    margin: 0 auto 20px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.avatar-placeholder {
    position: relative;
    z-index: 1;
}

/* 头像上传区域 */
.avatar-upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 30px;
    border: 2px dashed #ddd;
    border-radius: 12px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.avatar-upload-area:hover {
    border-color: #667eea;
    background: #f0f2ff;
}

.avatar-preview {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid #667eea;
    object-fit: cover;
    display: block;
}

.avatar-preview-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
}

.file-hint {
    font-size: 12px;
    color: #666;
    text-align: center;
    margin-top: 5px;
}

.avatar-section h2 {
    font-size: 28px;
    margin-bottom: 8px;
}

.avatar-section p {
    opacity: 0.9;
    font-size: 16px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.15);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.stat-label {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 32px;
    font-weight: bold;
}

/* 标签页 */
.tabs {
    display: flex;
    background: #f5f5f5;
    border-bottom: 2px solid #e0e0e0;
}

.tab-btn {
    flex: 1;
    padding: 20px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.tab-btn.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background: white;
}

.tab-content {
    display: none;
    padding: 30px;
}

.tab-content.active {
    display: block;
}

/* 答题记录 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-header h2 {
    font-size: 24px;
    color: #333;
}

.filter-buttons {
    display: flex;
    gap: 10px;
}

.filter-btn {
    padding: 8px 16px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
    border-color: #667eea;
    color: #667eea;
    background: #f0f0ff;
}

.quiz-list {
    display: grid;
    gap: 20px;
}

.quiz-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #667eea;
    transition: transform 0.3s;
}

.quiz-item:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.quiz-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.quiz-category {
    font-weight: bold;
    color: #667eea;
}

.quiz-time {
    color: #999;
    font-size: 14px;
}

.quiz-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.quiz-stat {
    text-align: center;
}

.quiz-stat-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.quiz-stat-value {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #999;
}

.no-data {
    text-align: center;
    padding: 60px;
    color: #999;
    font-size: 16px;
}

/* 设置表单 */
.settings-section {
    margin-bottom: 40px;
}

.settings-section h2 {
    margin-bottom: 25px;
    color: #333;
}

.settings-form {
    max-width: 500px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.error-message {
    display: block;
    color: #ff4757;
    font-size: 12px;
    margin-top: 5px;
    min-height: 20px;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* 消息提示 */
.message-banner {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    background: #4caf50;
    color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform: translateX(400px);
    transition: transform 0.3s;
    z-index: 1000;
}

.message-banner.show {
    transform: translateX(0);
}

.message-banner.error {
    background: #ff4757;
}

/* 答题详情列表样式 */
.questions-detail-list {
    max-height: 500px;
    overflow-y: auto;
    padding: 10px;
}

.loading-text {
    text-align: center;
    color: #666;
    padding: 20px;
}

.question-detail-item {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.question-detail-item.correct {
    border-color: #4caf50;
    background: #f1f8f4;
}

.question-detail-item.incorrect {
    border-color: #ff4757;
    background: #fff5f5;
}

.question-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
}

.question-number {
    font-weight: bold;
    font-size: 16px;
    color: #333;
}

.question-status {
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 14px;
}

.question-status.correct {
    background: #4caf50;
    color: white;
}

.question-status.incorrect {
    background: #ff4757;
    color: white;
}

.question-detail-body {
    margin-top: 15px;
}

.question-text {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 15px;
    font-weight: 500;
}

.question-options {
    margin: 15px 0;
}

.question-option {
    display: flex;
    align-items: flex-start;
    padding: 12px 15px;
    margin-bottom: 10px;
    border-radius: 8px;
    background: white;
    border: 2px solid #e9ecef;
    transition: all 0.2s ease;
}

.question-option .option-label {
    font-weight: bold;
    margin-right: 10px;
    color: #667eea;
    min-width: 25px;
}

.question-option .option-text {
    flex: 1;
    color: #333;
    line-height: 1.5;
}

.question-option.correct-option {
    border-color: #4caf50;
    background: #e8f5e9;
}

.question-option.correct-option .option-label {
    color: #4caf50;
}

.question-option.wrong-option {
    border-color: #ff4757;
    background: #ffebee;
}

.question-option.wrong-option .option-label {
    color: #ff4757;
}

.question-option.user-selected {
    font-weight: 500;
}

.answer-info {
    display: flex;
    gap: 30px;
    margin-top: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.answer-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.answer-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.answer-value {
    font-size: 18px;
    font-weight: bold;
    padding: 4px 12px;
    border-radius: 6px;
}

.answer-value.user-answer {
    background: #667eea;
    color: white;
}

.answer-value.correct-answer {
    background: #4caf50;
    color: white;
}

/* 答案解析样式 */
.question-explanation {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    border-radius: 8px;
}

.explanation-title {
    font-weight: bold;
    font-size: 15px;
    color: #667eea;
    margin-bottom: 10px;
}

.explanation-content {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
    }

    .nav-menu {
        width: 100%;
        justify-content: space-between;
    }

    .user-card {
        padding: 30px 20px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .filter-buttons {
        width: 100%;
        justify-content: space-between;
    }

    .filter-btn {
        flex: 1;
    }

    .quiz-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .tab-content {
        padding: 20px;
    }
}

/* 答题记录底部 */
.quiz-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.quiz-duration {
    color: #666;
    font-size: 14px;
}

.btn-detail {
    padding: 8px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-detail:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* 详情弹窗 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

/* 当模态框显示时，确保使用flex布局进行居中 */
.modal[style*="block"],
.modal[style*="flex"] {
    display: flex !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: white;
    border-radius: 15px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 32px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #333;
}

.modal-content h2 {
    color: #333;
    margin-bottom: 25px;
    font-size: 24px;
}

.detail-section {
    margin-bottom: 25px;
}

.detail-section h3 {
    color: #667eea;
    font-size: 18px;
    margin-bottom: 15px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.detail-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.detail-label {
    color: #666;
    font-size: 14px;
    display: block;
    margin-bottom: 5px;
}

.detail-value {
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.score-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.score-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.score-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
}

.score-info {
    flex: 1;
}

.score-label {
    color: #666;
    font-size: 13px;
    margin-bottom: 5px;
}

.score-value {
    color: #333;
    font-size: 22px;
    font-weight: bold;
}

.analysis-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.analysis-item {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.analysis-label {
    color: #666;
    font-size: 14px;
}

.analysis-value {
    color: #667eea;
    font-size: 18px;
    font-weight: 600;
}

.detail-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: flex-end;
}

.btn-secondary {
    padding: 12px 30px;
    background: #f0f0f0;
    color: #333;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

/* 响应式 - 详情弹窗 */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        padding: 20px;
    }

    .detail-grid,
    .analysis-grid {
        grid-template-columns: 1fr;
    }

    .score-stats {
        grid-template-columns: 1fr;
    }

    .detail-actions {
        flex-direction: column;
    }

    .btn, .btn-secondary {
        width: 100%;
    }

    .quiz-footer {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .btn-detail {
        width: 100%;
    }
}

/* ========== 新增功能样式 ========== */

/* 学习进度 */
.progress-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.progress-section h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
}

.level-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.level-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 25px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.exp-bar {
    flex: 1;
    height: 12px;
    background: #f0f0f0;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.exp-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 6px;
    transition: width 0.3s ease;
}

.exp-text {
    position: absolute;
    right: 10px;
    top: -20px;
    font-size: 12px;
    color: #666;
}

/* 数据图表 */
.charts-section {
    margin-bottom: 30px;
}

.charts-section h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
}

.charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.chart-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.chart-card h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.chart-card canvas {
    max-width: 100%;
    height: 200px !important;
    width: 100% !important;
}

/* 学习目标 */
.goals-section {
    margin-bottom: 30px;
}

.goals-section h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
}

.goals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.goal-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.goal-card h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 15px;
}

.goal-progress {
    margin-bottom: 15px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #f0f0f0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4caf50 0%, #45a049 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-text {
    font-size: 14px;
    color: #666;
    text-align: right;
}

.goal-card .btn {
    width: 100%;
}

/* 成就系统 */
.achievements-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.achievement-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.achievement-section h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 20px;
}

.achievement-stats {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.achievements-list {
    display: grid;
    gap: 15px;
}

.achievement-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-radius: 8px;
    background: #f8f9fa;
    border-left: 4px solid #ddd;
    transition: all 0.3s ease;
}

.achievement-item.unlocked {
    border-left-color: #4caf50;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(76, 175, 80, 0.05) 100%);
}

.achievement-item.locked {
    border-left-color: #9e9e9e;
    opacity: 0.7;
}

.achievement-icon {
    font-size: 24px;
    margin-right: 15px;
    width: 40px;
    text-align: center;
}

.achievement-info {
    flex: 1;
}

.achievement-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.achievement-desc {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.achievement-date {
    font-size: 12px;
    color: #999;
}

.achievement-rarity {
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.achievement-rarity.common {
    background: #e0e0e0;
    color: #666;
}

.achievement-rarity.rare {
    background: #2196f3;
    color: white;
}

.achievement-rarity.epic {
    background: #9c27b0;
    color: white;
}

.achievement-rarity.legendary {
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    color: white;
}

/* 收藏夹 */
.favorites-list {
    display: grid;
    gap: 15px;
}

.favorite-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.favorite-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.favorite-icon {
    font-size: 20px;
    margin-right: 15px;
    width: 35px;
    text-align: center;
}

.favorite-content {
    flex: 1;
}

.favorite-content h4 {
    font-size: 16px;
    color: #333;
    margin-bottom: 5px;
}

.favorite-content p {
    font-size: 14px;
    color: #666;
    margin-bottom: 3px;
}

.favorite-content small {
    font-size: 12px;
    color: #999;
}

.remove-favorite {
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.remove-favorite:hover {
    background: #ff3742;
    transform: scale(1.1);
}

/* 学习目标设置模态框 */
#goalModal .modal-content {
    max-width: 500px;
    width: 95%;
}

#goalModal .form-group {
    margin-bottom: 20px;
}

#goalModal label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

#goalModal input, #goalModal select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

#goalModal input:focus, #goalModal select:focus {
    outline: none;
    border-color: #667eea;
}

.modal-buttons {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

/* 个性化设置 */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: normal;
    cursor: pointer;
    margin-bottom: 15px;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #667eea;
}

.checkbox-label:last-child {
    margin-bottom: 0;
}

#reminderTimeGroup {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e1e5e9;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .charts-grid {
        grid-template-columns: 1fr;
    }

    .achievements-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .level-info {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .exp-bar {
        width: 100%;
    }

    .goals-grid {
        grid-template-columns: 1fr;
    }

    .goal-card {
        padding: 20px;
    }

    .charts-grid {
        gap: 20px;
    }

    .chart-card {
        padding: 20px;
    }

    .achievements-grid {
        gap: 20px;
    }

    .achievement-section {
        padding: 20px;
    }

    .modal-buttons {
        flex-direction: column;
    }

    .modal-buttons .btn {
        width: 100%;
    }
}

